<template>
    <div class="HomePage">
        <div class="PageTop">
            <SmartCampus />
        </div>
        <div class="PageBottom">
            <div class="PageLeft">
                <Statistics />
                <RealTime />
                <Field />
            </div>
            <div class="PageMiddle">
                <MaintenanceMiddle />
            </div>
            <div class="PageRight">
                <Testing />
                <EquipmentStatus />
                <Alert />
            </div>
        </div>

    </div>
</template>

<script setup>
import SmartCampus from '../../components/SmartCampus/SmartCampus.vue';
import Statistics from '../../components/Statistics/Statistics.vue';
import RealTime from '../../components/RealTime/RealTime.vue';
import Field from '../../components/Field/Field.vue';
import Testing from '../../components/Testing/Testing.vue';
import EquipmentStatus from '../../components/EquipmentStatus/EquipmentStatus.vue';
import Alert from '../../components/Alert/Alert.vue';
import MaintenanceMiddle from '../../components/MaintenanceMiddle/MaintenanceMiddle.vue';

</script>

<style lang="scss" scoped>
.HomePage {
    display: flex;
    /* 纵向排列 */
    flex-direction: column;
    /* 占满全屏 */
    height: 100%;
    background: rgba(3, 1, 42, 1);
    color: #fff;

    .PageTop {
        flex: 0 0 74px;
        z-index: 1;
    }

    .PageBottom {
        display: flex;
        flex: 1;
        overflow: hidden;

        .PageLeft {
            position: fixed;
            top: 0;
            left: 0;
            width: 484px;
            height: 100%;
            /* 可视化边栏的背景颜色 */
            // background: rgba(5, 1, 76, 1);
            // 背景图片
            background-image: url('../../assets/left.png');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .PageMiddle {
            position: fixed;
            top: 0;
            left: 479px;
            /* 主内容占据剩余空间 */
            background: rgba(5, 1, 76, 1);
            
            /* 主内容的背景颜色 */
        }

        .PageRight {
            position: fixed;
            top: 0;
            right: 0;
            width: 484px;
            height: 100%;
            // background: rgba(5, 1, 76, 1);
            // 背景图片
            background-image: url('../../assets/right.png');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }
    }
}
</style>